import request from '@/utils/request'
// const basePath = 'http://10.7.52.139:8100/flight'
import {baseUrlConfig} from '@/config/config'

const basePath = baseUrlConfig.businessBaseUrl

/**
 *
 * */
export const queryList = (data: any) => {
    return request({
        url: basePath + '/flight/terminal/queryList',
        method: 'post',
        data
    })
}

export const arrExport = (data: any) => {
    return request({
        url: basePath + '/flight/terminal/arrexport',
        method: 'post',
        responseType: 'blob',
        data
    })
}

export const depExport = (data: any) => {
    return request({
        url: basePath + '/flight/terminal/depexport',
        method: 'post',
        responseType: 'blob',
        data
    })
}

// 地面查询
export const selectPlan = (data: any) => {
    return request({
        url: basePath + '/protection/plan/selectPlan',
        method: 'post',
        data
    })
}

//地面导出
export const exportPlan = (data: any) => {
    return request({
        url: basePath + '/protection/plan/export',
        method: 'post',
        responseType: 'blob',
        data
    })
}
